/**
 * ICusContactsService.java
 * Created at 2017-3-2
 * Created by shihui
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.basic.service;

import java.util.List;
import java.util.Map;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.ServiceException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.basic.model.TmEmploy;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * <p>ClassName: ICusContactsService</p>
 * <p>Description: 客户联系人服务接口</p>
 * <p>Author: shihui</p>
 * <p>Date: 2017-3-2</p>
 */
public interface ICusContactsService extends IEntityService<TmEmploy> {

    /**
     * 
     * <p>Description: 查询客户联系人列表</p>
     * @param map 查询条件
     * @param pageBounds 翻页信息
     * @return 联系人
     * @throws ServiceException 异常
     */
    @SuppressWarnings("rawtypes")
    EntityPageBean getCusContacts(Map<String, Object> map, PageBounds pageBounds) throws ServiceException;

    /**
     * 
     * <p>Description: (批量伪)删除联系人</p>
     * @param idArray 联系人ID
     * @param sysUser 当前操作人
     * @throws ServiceException 异常
     */
    void deleteContactsByIds(String[] idArray, String sysUser) throws ServiceException;

    /**
     * 
     * <p>Description: 根据选择的客户查询厂区</p>
     * @param customId 客户ID
     * @return 厂区
     * @throws ServiceException 异常
     */
    List<Object> findFactoryByCustomer(String customId) throws ServiceException;


    /**
     * 
     * <p>Description: 验证操作删除人员是否已绑定用户</p>
     * @param idArray 人员ID
     * @return 验证结果:true-已绑定；false-未绑定
     * @throws ServiceException 异常
     */
    boolean checkUserBind(String[] idArray) throws ServiceException;
    
    /**
     * 
     * <p>Description: 获取下属子节点option</p>
     * @param parentId
     * @return
     * @throws ServiceException
     */
    List<Object> findCustomerList(String parentId) throws ServiceException;

    
}
